package com.zheng.oss.rpc.api;

import com.zheng.oss.dao.model.OssFile;
import com.zheng.oss.dao.model.OssRoleFile;
import com.zheng.common.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author likun
 * @since 2018-05-08
 */
public interface OssRoleFileService extends BaseService<OssRoleFile> {
    List<Map<String, Object>> selectRoleFile(Integer fileId, Integer roleId);

    boolean insertRoleFile(OssFile file);

    boolean filePermission(List<OssRoleFile> roleFiles, Boolean effect);
}
